Popular Searches
Popular Course Categories
Popular Courses

Understanding Rows and Columns Shelves

Understanding Rows and Columns Shelves

Basic Data Visualization

Understanding Rows and Columns Shelves in Tableau

Course: Tableau Data Visualization and Analytics

Learning Objective: Understand the purpose of Rows and Columns shelves, learn how to place dimensions and measures on them, interpret discrete and continuous fields, and create meaningful charts using Tableau.

Course Link: JustAcademy Tableau Training

Demo Link: Register for a Tableau Course Demo


1. Introduction to Rows and Columns Shelves

In Tableau, Rows and Columns are important shelves used to organize data and define the structure of a visualization. They determine how fields appear in the worksheet and how Tableau arranges headers, axes, panes, and marks.

The Rows shelf generally controls the vertical arrangement of a view, while the Columns shelf generally controls the horizontal arrangement. By placing fields on these shelves, users can create bar charts, line charts, tables, heat maps, and many other visualizations.

Tableau allows users to drag fields from the Data pane and drop them onto either shelf. The resulting view depends on the field type, its discrete or continuous setting, and the combination of fields used.

Example

Suppose a company wants to analyze sales across different product categories. You can place Category on Columns and Sales on Rows. Tableau can then display a chart showing the sales associated with each category.

Data Pane
   |
   |-- Category ------> Columns Shelf
   |
   |-- Sales ---------> Rows Shelf
   |
   v
Sales by Category Visualization

2. What Is the Rows Shelf?

The Rows shelf is an area in a Tableau worksheet where you place fields to organize information vertically. Depending on the field, Tableau may create row headers, a vertical axis, or additional sections within the view.

Functions of the Rows Shelf

  • Displays dimension members as row headers when discrete dimensions are used.
  • Creates a vertical quantitative axis when continuous measures are used.
  • Organizes data into rows or separate panes.
  • Helps compare values across categories and other fields.
  • Supports the creation of charts, tables, and more detailed analytical views.

Example: Region on Rows

Assume a dataset contains four regions: East, West, North, and South. Dragging the Region field to Rows creates row headers for those regions.

Region Sales
East 25,000
West 32,000
North 18,000
South 28,000

When Region is placed on Rows and Sales is placed on Columns, Tableau can create a horizontal bar chart comparing sales by region.

3. What Is the Columns Shelf?

The Columns shelf is an area in a Tableau worksheet where fields are placed to organize information horizontally. It can create column headers, a horizontal quantitative axis, or separate columns and panes within a visualization.

Functions of the Columns Shelf

  • Displays dimension members as column headers when discrete dimensions are used.
  • Creates a horizontal quantitative axis when continuous measures are used.
  • Organizes information across columns.
  • Helps compare categories, time periods, products, and other groups.
  • Allows users to create structured tables, charts, and analytical views.

Example: Category on Columns

If the Category field contains Furniture, Office Supplies, and Technology, placing it on Columns creates a separate column header for each category.

Furniture Office Supplies Technology
Sales data Sales data Sales data

When Category is on Columns and Sales is on Rows, Tableau can display a vertical bar chart comparing sales across categories.

4. Difference Between Rows and Columns Shelves

Feature Rows Shelf Columns Shelf
General orientation Vertical organization Horizontal organization
Discrete dimension Typically creates row headers Typically creates column headers
Continuous measure Typically creates a vertical axis Typically creates a horizontal axis
Common use Listing categories or displaying vertical measures Displaying categories across a view or horizontal measures
Example Region on Rows Category on Columns
Chart orientation Can contribute to vertical bar charts or horizontal category lists Can contribute to horizontal bar charts or vertical category comparisons

Important: Rows does not always mean that a chart will be horizontal, and Columns does not always mean that a chart will be vertical. Chart orientation depends on the fields, their properties, and the resulting view configuration.

5. Understanding Dimensions and Measures

To use Rows and Columns effectively, you need to understand the difference between dimensions and measures.

5.1 Dimensions

Dimensions are fields used to categorize, group, or describe data. They commonly contain names, labels, dates, or categories.

Examples: Region, Category, Product Name, Customer Name, Order Date, and Segment.

When a discrete dimension is placed on Rows or Columns, Tableau generally creates headers representing its members.

5.2 Measures

Measures are fields containing values that can usually be measured or aggregated, such as sales, profit, quantity, or cost.

Examples: Sales, Profit, Quantity, Discount, and Revenue.

When a continuous measure is placed on Rows or Columns, Tableau generally creates a quantitative axis. Tableau commonly aggregates measures using functions such as SUM, AVG, MIN, or MAX.

Field Typical Type Example Use
Region Dimension Place on Rows to list regions
Category Dimension Place on Columns to compare categories
Sales Measure Place on Rows or Columns to show values
Profit Measure Compare profitability across groups
Order Date Date field; can be used discretely or continuously Analyze sales over time

6. Discrete and Continuous Fields

One of the most important concepts when working with Rows and Columns is the difference between discrete and continuous fields.

6.1 Discrete Fields

Discrete fields represent separate, distinct values. In Tableau, discrete field pills are generally blue. They typically produce headers rather than a continuous numeric axis.

Examples: Region names, product categories, individual years displayed as headers, and customer segments.

6.2 Continuous Fields

Continuous fields represent values along a range. In Tableau, continuous field pills are generally green. They typically create an axis with a continuous scale.

Examples: Sales values, profit values, and dates displayed on a continuous timeline.

Feature Discrete Continuous
Typical pill color Blue Green
Appearance Headers for distinct members Continuous axis or scale
Common purpose Group and separate categories Show magnitude, range, or progression
Example Category SUM(Sales)

A field's behavior depends on how it is configured in the view. For example, a date field can be displayed as discrete date parts or as a continuous timeline.

7. How to Use Rows and Columns Shelves

Follow these steps to create your first visualization using the shelves.

  1. Open Tableau Desktop or a supported Tableau web authoring environment.
  2. Connect to a dataset, such as a sales Excel file or sample business dataset.
  3. Open a new worksheet.
  4. Locate the Data pane, which contains the available dimensions and measures.
  5. Drag a dimension, such as Category, to the Columns shelf.
  6. Drag a measure, such as Sales, to the Rows shelf.
  7. Review the visualization Tableau generates automatically.
  8. Use the Marks card to adjust the mark type, color, size, label, or tooltip when needed.
  9. Sort or format the view to make comparisons easier to understand.
  10. Save the workbook.

Expected Result

You should see a view comparing sales across product categories. The exact chart type and appearance depend on the field configuration and Tableau's automatic choices.

8. Example 1: Create a Bar Chart

Business Question: Which product category generates the highest sales?

Sample Data

Category Sales
Furniture 45,000
Office Supplies 30,000
Technology 60,000

Steps

  1. Drag Category to Columns.
  2. Drag Sales to Rows.
  3. Confirm that the Sales measure is aggregated appropriately, for example as SUM(Sales).
  4. Choose Bar from the Marks card if you want to specify the mark type manually.
  5. Use sorting to arrange categories by sales.
  6. Optionally drag Sales to Label on the Marks card to display the values.

Interpretation

Technology has the highest sales in this sample, followed by Furniture and Office Supplies. The visualization helps the viewer compare category performance quickly.

9. Example 2: Create a Horizontal Bar Chart

Business Question: Which region contributes the most sales?

Steps

  1. Drag Region to Rows.
  2. Drag Sales to Columns.
  3. Ensure Sales is displayed as a measure, such as SUM(Sales).
  4. Select a bar mark if Tableau has not already created the desired chart.
  5. Sort the regions by sales in descending order.

Result: Region names appear as row headers, while the sales values are represented along the horizontal axis. This layout is useful when category names are long or many categories need to be compared.

10. Example 3: Analyze Sales Over Time

Business Question: How do sales change from month to month?

Steps

  1. Drag Order Date to Columns.
  2. Choose the appropriate date level, such as Month or continuous Month, depending on the analysis.
  3. Drag Sales to Rows.
  4. Choose Line on the Marks card to display a line chart if needed.
  5. Check that the date range and aggregation match the question.

Result: The horizontal axis represents time, and the vertical axis represents sales. This view helps identify trends, increases, decreases, and recurring patterns.

Tip: If Tableau groups January from multiple years together, check whether the date field is using month as a date part rather than a month-and-year timeline. Use the date level that best represents the intended analysis.

11. Example 4: Create a Cross-Tab or Text Table

A cross-tab presents summarized values in a row-and-column arrangement. It is useful when users need exact figures instead of a chart.

Steps

  1. Drag Region to Rows.
  2. Drag Category to Columns.
  3. Drag Sales to Text on the Marks card, or use a suitable text-table arrangement.
  4. Review the values for each Region and Category combination.
  5. Format the numbers and headers for readability.
Region Furniture Office Supplies Technology
East 12,000 8,000 18,000
West 15,000 10,000 22,000
North 9,000 7,000 11,000

The figures above are illustrative. In Tableau, the values shown are calculated from the connected dataset and the aggregation used.

12. Adding Multiple Fields to Rows and Columns

Tableau allows multiple fields to be placed on the Rows and Columns shelves. This adds detail to a view and can create nested headers, additional panes, or more complex visualizations.

Example

  • Place Region on Rows.
  • Place Category below Region on Rows.
  • Place Sales on Columns.

The view can show sales broken down by region and then category. The order of fields on a shelf affects the structure and level of detail of the view.

Why Field Order Matters

When multiple fields occupy a shelf, Tableau uses their order to organize headers and panes. Moving a field can change the nesting of categories and make the visualization easier or harder to interpret.

Practical tip: Experiment with field order and check the result after each change. Keep the most useful grouping structure for the business question.

13. Moving Fields Between Rows and Columns

You can move a field from one shelf to the other to change the layout of a visualization.

Steps

  1. Locate the field pill on the Rows or Columns shelf.
  2. Drag it to the other shelf.
  3. Review the changed axes, headers, and marks.
  4. Adjust the mark type or formatting if needed.

For example, moving Region from Rows to Columns changes where region headers appear. Moving a measure between shelves can change the orientation of the quantitative axis and the chart.

14. Removing and Reordering Fields

Removing a Field

To remove a field, drag its pill off the shelf or use the field's menu and choose the available removal option. In Tableau Desktop, you can also clear a shelf using its context menu.

Reordering Fields

Drag field pills into the desired order on the same shelf. Tableau updates the view to reflect the new order.

When to Reorder

  • When you want to change the hierarchy of nested categories.
  • When the most important grouping should appear first.
  • When the current view is difficult to read.
  • When preparing a table or chart for a dashboard.

15. Understanding Axes, Headers, Panes, and Marks

Rows and Columns shelves work together with other elements of the worksheet.

  • Headers: Display members of discrete fields, such as region or category names.
  • Axes: Show the scale of a continuous field, such as sales or profit.
  • Panes: Separate sections of a view created by the combination of fields.
  • Cells: Individual positions in a table-like layout.
  • Marks: Visual representations of data, such as bars, lines, circles, or text.

Adding fields to Rows and Columns can increase the number of headers, panes, and marks. A well-designed view should balance detail with readability.

16. Relationship Between Rows, Columns, and the Marks Card

Rows and Columns establish the structure of a view, while the Marks card controls how data is visually represented within it.

Element Purpose Example
Rows Defines vertical structure or a vertical axis Region or Sales
Columns Defines horizontal structure or a horizontal axis Category or Order Date
Color Distinguishes marks by a field Color bars by Region
Label Displays text on marks Show sales values
Size Changes the size of supported marks Represent quantity with circle size
Detail Adds detail to the level of the view Include customer-level detail
Tooltip Shows details when a user points to a mark Display product and profit details

17. Common Problems and Troubleshooting

Problem 1: The Chart Looks Different from Expected

Possible reason: The field types, shelf placement, aggregation, or mark type may not match the intended chart.

Solution: Check the fields on Rows and Columns, review the pill menus, and select an appropriate mark type.

Problem 2: Sales Values Are Too Large

Possible reason: Tableau is summing multiple records, or the underlying dataset contains repeated records.

Solution: Check the aggregation and the data structure. Use SUM, AVG, MIN, or MAX only when appropriate for the question.

Problem 3: The View Has Too Many Rows or Columns

Possible reason: Several high-cardinality dimensions have been added to the shelves.

Solution: Remove unnecessary fields, use filters where appropriate, or summarize the data at a more useful level.

Problem 4: Dates Are Grouped Unexpectedly

Possible reason: The date field is using a date part or date level that does not match the analysis.

Solution: Open the date pill menu and choose the desired date level or continuous date option.

Problem 5: Category Names Are Difficult to Read

Possible reason: Long headers or too many categories make the view crowded.

Solution: Consider a horizontal bar chart, improve formatting, sort categories, or narrow the analysis to relevant items.

18. Best Practices for Rows and Columns Shelves

  • Start with a clear business question before placing fields.
  • Use dimensions to organize and group data.
  • Use measures to compare quantities and numerical values.
  • Understand whether fields are discrete or continuous.
  • Choose an appropriate date level for time-based analysis.
  • Keep the number of fields manageable.
  • Reorder pills to improve the structure of nested headers.
  • Use sorting to make comparisons easier.
  • Use the Marks card to add useful labels, colors, or tooltips.
  • Verify aggregation and avoid misleading comparisons.
  • Use filters to focus on relevant data, while considering their effect on calculations.
  • Check the view after each significant change.

19. Practical Project: Regional Sales Analysis

Project Goal: Build a Tableau worksheet that compares sales across regions and product categories.

Required Fields

  • Region
  • Category
  • Sales
  • Profit
  • Order Date

Task A: Compare Sales by Region

  1. Place Region on Rows.
  2. Place Sales on Columns.
  3. Sort the regions by sales.
  4. Add Sales to Label if exact values are helpful.

Task B: Compare Categories

  1. Place Category on Columns.
  2. Place Sales on Rows.
  3. Choose a bar mark.
  4. Identify the category with the highest sales.

Task C: Explore Profit by Region

  1. Replace Sales with Profit on the measure shelf or create a separate worksheet.
  2. Check whether SUM(Profit) is appropriate.
  3. Compare regions and identify where profit is highest or lowest.

Task D: Analyze Monthly Sales

  1. Place Order Date on Columns.
  2. Choose a month-and-year view or another suitable continuous date arrangement.
  3. Place Sales on Rows.
  4. Use a line mark to examine trends over time.

Expected Learning Outcome

After completing this project, you should be able to create different views by arranging dimensions and measures on Rows and Columns, select suitable field configurations, and explain the results in business terms.

20. Interview Questions and Answers

Q1. What are Rows and Columns shelves in Tableau?

Answer: They are worksheet areas where fields are placed to structure a visualization. Rows generally control vertical organization, while Columns generally control horizontal organization.

Q2. What happens when a discrete dimension is placed on Rows?

Answer: Tableau generally creates row headers for the distinct members of the dimension.

Q3. What happens when a continuous measure is placed on Columns?

Answer: Tableau generally creates a horizontal quantitative axis for that measure.

Q4. What is the difference between discrete and continuous fields?

Answer: Discrete fields represent distinct members and generally create headers. Continuous fields represent a range and generally create an axis.

Q5. Can you place multiple fields on Rows and Columns?

Answer: Yes. Multiple fields can be placed on either shelf to create additional headers, panes, and levels of detail.

Q6. What happens when you move a field from Rows to Columns?

Answer: The view is reorganized. Headers or axes associated with the field change orientation, and the visualization may change accordingly.

Q7. What is the role of the Marks card?

Answer: It controls how marks are represented, including mark type, color, size, label, detail, and tooltip.

Q8. Why might Tableau show SUM(Sales)?

Answer: Tableau commonly aggregates measures to summarize records in the view. SUM adds the values in the relevant group, although another aggregation may be more appropriate for some analyses.

Q9. How can you create a horizontal bar chart using Rows and Columns?

Answer: Place the category field on Rows and the measure on Columns, then choose a bar mark if needed.

Q10. How can you create a line chart showing sales over time?

Answer: Place a suitable Order Date field on Columns, Sales on Rows, and select a line mark.

Q11. Why does the order of fields on a shelf matter?

Answer: Field order affects the arrangement and nesting of headers and panes, which can change how users interpret the data.

Q12. How can you remove a field from a shelf?

Answer: Drag the pill off the shelf or use the field menu to remove it.

21. Practice Exercises

  1. Place Category on Rows and Sales on Columns. Identify the category with the highest sales.
  2. Place Region on Columns and Profit on Rows. Explain what the chart shows.
  3. Build a cross-tab using Region on Rows, Category on Columns, and Sales on Text.
  4. Create a monthly sales trend using Order Date and Sales.
  5. Add multiple dimensions to Rows and observe how the table structure changes.
  6. Move a field from Rows to Columns and describe how the view changes.
  7. Change a date field between discrete and continuous representations and compare the results.
  8. Sort a bar chart by its measure and explain why sorting improves readability.

22. Quick Revision Notes

  • Rows shelf: Organizes a view vertically.
  • Columns shelf: Organizes a view horizontally.
  • Dimensions: Usually categorize or group information.
  • Measures: Usually represent numerical values that can be aggregated.
  • Discrete fields: Generally create headers and are shown as blue pills.
  • Continuous fields: Generally create axes and are shown as green pills.
  • Multiple fields: Add detail and can create nested headers or panes.
  • Marks card: Controls the visual appearance and encoding of marks.
  • Field order: Influences the layout and nesting of the view.
  • Aggregation: Determines how measure values are summarized.

23. Final Checklist

  • ☐ I can locate the Rows and Columns shelves.
  • ☐ I understand the difference between dimensions and measures.
  • ☐ I can explain discrete and continuous fields.
  • ☐ I can create a basic bar chart.
  • ☐ I can create a time-series chart.
  • ☐ I can create a cross-tab.
  • ☐ I can add, remove, and reorder fields.
  • ☐ I can explain the relationship between shelves, axes, headers, and marks.
  • ☐ I can check aggregations and interpret the resulting visualization.

24. Conclusion

Rows and Columns shelves are fundamental building blocks of Tableau visualizations. They allow users to arrange dimensions and measures, define the structure of a view, and explore data from different perspectives. By learning how discrete and continuous fields behave, how multiple fields interact, and how shelf placement works with the Marks card, you can create clear and informative charts and tables.

Continue learning with JustAcademy Tableau Training, or use Register for a Tableau Course Demo to explore the course.

References

whatsapp